from django.db import models


# 系统配置
class Config(models.Model):
    group = models.PositiveSmallIntegerField(verbose_name='分组')
    name = models.CharField(max_length=32, verbose_name='变量名')
    val = models.TextField(verbose_name='变量值')
    remarks = models.CharField(max_length=255, verbose_name='备注')

    class Meta:
        db_table = 'zeus_config'
        verbose_name = '系统配置'
        verbose_name_plural = verbose_name

        def __str__(self):
            return self.name
